import request from '@/utils/request'

// 查询监控主机列表
export function listHost(query) {
  return request({
    url: '/monitor/host/list',
    method: 'get',
    params: query
  })
}

// 查询监控主机详细
export function getHostDetail(id) {
  return request({
    url: '/monitor/host/' + id,
    method: 'get'
  })
}

export function getHostChartData(id,timeRange) {  
  return request({    
    url: '/monitor/host/chartData/' + id,     
    method: 'get' ,
     params: { timeRange }
    })
  }

